﻿using Microsoft.AspNetCore.Mvc;
using PlutoStudio.Web.Configuration;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace PlutoStudio.AspNetCore.Mvc.Controllers
{
    public class UserConfigurationController : Controller
    {
        private readonly UserConfigurationBuilder _abpUserConfigurationBuilder;

        public UserConfigurationController(UserConfigurationBuilder abpUserConfigurationBuilder)
        {
            _abpUserConfigurationBuilder = abpUserConfigurationBuilder;
        }

        public async Task<JsonResult> GetAll()
        {
            var userConfig = await _abpUserConfigurationBuilder.GetAll();
            return Json(userConfig);
        }
    }
}
